package com.action.childbase;

import com.action.ioc.component.AppComponent;
import com.action.ioc.component.ChildViewComponent;
import com.action.ioc.module.ChildModule;
import com.base.app_core.App;
import com.base.app_core.base.impl.BaseActivity;
import com.base.app_core.base.impl.BasePresenter;

/**
 * Created by jiansheng.li on 2018/1/16.
 */

public abstract class ChildBaseActivity<T extends BasePresenter> extends BaseActivity<T> {

    protected ChildViewComponent getChildViewComponent() {
        return (ChildViewComponent) ((AppComponent) App.getApp().getAppComponent()).plus(getSuperModule());
    }

    protected ChildModule getSuperModule() {
        return new ChildModule(this);
    }

    @Override
    protected void setupComponent() {

    }

    @Override
    protected void initView() {
        super.initView();
    }
}
